<?php

/* article/infoarticle.html */
class __TwigTemplate_91998c4d34e7421662f5afbda2925dfe917544896d41c44227cee82a764f379c extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("layout.html", "article/infoarticle.html", 1);
        $this->blocks = array(
            'web_title' => array($this, 'block_web_title'),
            'content' => array($this, 'block_content'),
            'script' => array($this, 'block_script'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "layout.html";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 2
        $context["now_title"] = "编辑文章";
        // line 1
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 4
    public function block_web_title($context, array $blocks = array())
    {
        echo twig_escape_filter($this->env, (isset($context["now_title"]) ? $context["now_title"] : null), "html", null, true);
        echo "-";
        $this->displayParentBlock("web_title", $context, $blocks);
        echo " ";
    }

    // line 5
    public function block_content($context, array $blocks = array())
    {
        // line 6
        echo "<div class=\"main-container\">
\t<!-- Top Bar Starts -->
\t<div class=\"top-bar clearfix\">
\t\t<div class=\"page-title\">
\t\t\t<h4>
\t\t\t\t<div class=\"fs1 iconfont icon-chuanboneirong\" aria-hidden=\"true\"></div>
\t\t\t\t";
        // line 12
        echo twig_escape_filter($this->env, (isset($context["now_title"]) ? $context["now_title"] : null), "html", null, true);
        echo "
\t\t\t</h4>
\t\t</div>
\t</div>
\t<!-- Top Bar Ends -->
\t<!-- Container fluid Starts -->
\t<div class=\"container-fluid\">
\t\t<!-- Spacer starts -->
\t\t<div class=\"spacer-xs\">
\t\t\t<div class=\"row no-gutter\">
\t\t\t\t<div class=\"col-md-12 col-sm-6 col-xs-12\">
\t\t\t\t\t<div class=\"panel panel-default\">
\t\t\t\t\t\t<div class=\"panel-heading\">
\t\t\t\t\t\t\t<h4>
\t\t\t\t\t\t\t\t";
        // line 26
        echo twig_escape_filter($this->env, (isset($context["now_title"]) ? $context["now_title"] : null), "html", null, true);
        echo "
\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t\t\t<form class=\"form-horizontal row-border\" method=\"post\" action=\"/admin/article/savearticle\">
\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"id\" value=\"";
        // line 31
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "data", array()), "id", array()), "html", null, true);
        echo "\"
\t\t\t\t\t\t\t\t/>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t标题
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"title\" class=\"form-control\" value=\"";
        // line 38
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "data", array()), "title", array()), "html", null, true);
        echo "\" required=\"required\" />

\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t所属分类
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<select name=\"category\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t\t\t";
        // line 48
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["category"]) ? $context["category"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["a"]) {
            // line 49
            echo "\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
            echo twig_escape_filter($this->env, $this->getAttribute($context["a"], "id", array()), "html", null, true);
            echo "\" ";
            if (($this->getAttribute($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "data", array()), "category", array()) == $this->getAttribute($context["a"], "id", array()))) {
                echo " selected=\"selected\" ";
            }
            echo ">";
            echo twig_escape_filter($this->env, $this->getAttribute($context["a"], "name", array()), "html", null, true);
            echo "</option>
\t\t\t\t\t\t\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['a'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 51
        echo "\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t关键词
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"keyword\" class=\"form-control\" value=\"";
        // line 59
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "data", array()), "keyword", array()), "html", null, true);
        echo "\" required=\"required\" />

\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t描述
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"desc\" class=\"form-control\" value=\"";
        // line 68
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "data", array()), "desc", array()), "html", null, true);
        echo "\" required=\"required\" />

\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t是否可用
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<select name=\"is_use\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t\t\t<option value=\"0\" ";
        // line 78
        if (($this->getAttribute($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "data", array()), "is_use", array()) == 0)) {
            echo " selected = \"selected\" ";
        }
        echo " >可用</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"1\" ";
        // line 79
        if (($this->getAttribute($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "data", array()), "is_use", array()) == 1)) {
            echo "  selected = \"selected\" ";
        }
        echo " >不可用</option>
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<script name=\"content\" id=\"content\">";
        // line 83
        echo $this->getAttribute($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "data", array()), "content", array());
        echo "</script>


\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-info pull-right\">
\t\t\t\t\t\t\t\t\t\t\t提交
\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<!-- row end -->
\t\t</div>
\t\t<!-- Spacer ends -->
\t</div>
\t<!-- Container fluid ends -->
</div>
<!-- Main Container Start -->
";
    }

    // line 107
    public function block_script($context, array $blocks = array())
    {
        // line 108
        echo "<script src=\"/assign/admin/js/ueditor/ueditor.config.js\"></script>
<script src=\"/assign/admin/js/ueditor/ueditor.all.min.js\"></script>
<script type=\"text/javascript\">
\tvar ue = UE.getEditor('content');
</script>
";
    }

    public function getTemplateName()
    {
        return "article/infoarticle.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  200 => 108,  197 => 107,  170 => 83,  161 => 79,  155 => 78,  142 => 68,  130 => 59,  120 => 51,  105 => 49,  101 => 48,  88 => 38,  78 => 31,  70 => 26,  53 => 12,  45 => 6,  42 => 5,  33 => 4,  29 => 1,  27 => 2,  11 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Twig_Source("{% extends \"layout.html\" %}
{% set now_title = '编辑文章'%}

{% block web_title %}{{ now_title }}-{{ parent()}} {% endblock%}
{% block content%}
<div class=\"main-container\">
\t<!-- Top Bar Starts -->
\t<div class=\"top-bar clearfix\">
\t\t<div class=\"page-title\">
\t\t\t<h4>
\t\t\t\t<div class=\"fs1 iconfont icon-chuanboneirong\" aria-hidden=\"true\"></div>
\t\t\t\t{{ now_title }}
\t\t\t</h4>
\t\t</div>
\t</div>
\t<!-- Top Bar Ends -->
\t<!-- Container fluid Starts -->
\t<div class=\"container-fluid\">
\t\t<!-- Spacer starts -->
\t\t<div class=\"spacer-xs\">
\t\t\t<div class=\"row no-gutter\">
\t\t\t\t<div class=\"col-md-12 col-sm-6 col-xs-12\">
\t\t\t\t\t<div class=\"panel panel-default\">
\t\t\t\t\t\t<div class=\"panel-heading\">
\t\t\t\t\t\t\t<h4>
\t\t\t\t\t\t\t\t{{ now_title }}
\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t\t\t<form class=\"form-horizontal row-border\" method=\"post\" action=\"/admin/article/savearticle\">
\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"id\" value=\"{{ data.data.id }}\"
\t\t\t\t\t\t\t\t/>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t标题
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"title\" class=\"form-control\" value=\"{{ data.data.title }}\" required=\"required\" />

\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t所属分类
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<select name=\"category\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t\t\t{% for a in category %}
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ a.id }}\" {%  if data.data.category == a.id %} selected=\"selected\" {% endif  %}>{{ a.name}}</option>
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t关键词
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"keyword\" class=\"form-control\" value=\"{{ data.data.keyword }}\" required=\"required\" />

\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t描述
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"desc\" class=\"form-control\" value=\"{{ data.data.desc }}\" required=\"required\" />

\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t\t\t\t是否可用
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<select name=\"is_use\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t\t\t<option value=\"0\" {%  if data.data.is_use == 0 %} selected = \"selected\" {% endif %} >可用</option>
\t\t\t\t\t\t\t\t\t\t\t<option value=\"1\" {%  if data.data.is_use == 1 %}  selected = \"selected\" {% endif %} >不可用</option>
\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<script name=\"content\" id=\"content\">{{ data.data.content|raw }}</script>


\t\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-info pull-right\">
\t\t\t\t\t\t\t\t\t\t\t提交
\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<!-- row end -->
\t\t</div>
\t\t<!-- Spacer ends -->
\t</div>
\t<!-- Container fluid ends -->
</div>
<!-- Main Container Start -->
{% endblock%}

{% block script %}
<script src=\"/assign/admin/js/ueditor/ueditor.config.js\"></script>
<script src=\"/assign/admin/js/ueditor/ueditor.all.min.js\"></script>
<script type=\"text/javascript\">
\tvar ue = UE.getEditor('content');
</script>
{% endblock%}
", "article/infoarticle.html", "E:\\xampp\\htdocs\\app\\admin\\views\\article\\infoarticle.html");
    }
}
